#include "DList.h"

int main()
{
    LTNode *plist = LTInit();
    LTPushBack(plist, 1);
    LTPushBack(plist, 2);
    LTPrint(plist);
    LTPushFront(plist, 3);
    LTPrint(plist);
    LTInsertAfter(LTFind(plist, 2), 4);
    LTPrint(plist);
    LTInsertBefore(LTFind(plist, 2), 5);
    LTPrint(plist);
    LTPopBack(plist);
    LTPrint(plist);
    LTPopFront(plist);
    LTPrint(plist);
    LTErase(LTFind(plist, 5));
    LTPrint(plist);
    LTDestory(plist);
    plist = NULL;

    return 0;
}